package com.example.as_sum.util;

/**
 * Created by ran on 2016/7/18.
 */
public class Log {
        //控制是不是显示Log日志
        public static final boolean isDebug=true;//true显示日志，false不显示日志
        public static void i(String tag,String msg){
            if(isDebug){
                android.util.Log.i(tag, msg);
            }
        }
        public static void e(String tag,String msg){
            if(isDebug){
                android.util.Log.e(tag, msg);
            }
        }
        public static void d(String tag,String msg){
            if(isDebug){
                android.util.Log.d(tag, msg);
            }
        }
        public static void e(Exception e){
            if(isDebug){
                e.printStackTrace();
            }
        }
        public static void System_out_printLn(Object o){
            if(isDebug){
                System.out.print(o);
            }
        }
}
